import VueRouter from 'vue-router'



// 导入Account的两个子组件

// import app from './APP.vue'
import HomeContainer from  './components/tabbar/HomeContainer.vue'
import MemberContainer from  './components/tabbar/MemberContainer.vue'
import SearchContainer from  './components/tabbar/SearchContainer.vue'
import ShopcarContainer from  './components/tabbar/ShopcarContainer.vue'

import newslist from  './components/news/newslist.vue'
import NewsInfo from  './components/news/newsInfo.vue'

import photolist from  './components/photos/photolist.vue'
import photoinfo from  './components/photos/photoinfo.vue'

import goodslist from  './components/goods/goodslist.vue'
import goodsinfo from  './components/goods/GoodsInfo.vue'



import goodsdesc from  './components/goods/GoodsDesc.vue'
import goodscomment from  './components/goods/GoodsComment.vue'


var router = new VueRouter({
  routes: [
    // account  goodslist
    {path:'/',redirect:'/HomeContainer'},
    {path: '/HomeContainer',component: HomeContainer},
    {path: '/MemberContainer', component: MemberContainer},
    {path: '/SearchContainer', component: SearchContainer},
    {path: '/ShopcarContainer', component: ShopcarContainer},
    {path: '/home/newslist', component: newslist},
    {path: '/home/photolist', component: photolist},
    {path: '/home/goodslist', component: goodslist},
    {path: '/home/newsInfo/:id', component: NewsInfo},
    {path: '/home/photoinfo/:id', component: photoinfo},
    {path: '/home/goodsinfo/:id', component: goodsinfo,name :'goodsinfo'},
    {path: '/home/goodsdesc/:id', component: goodsdesc,name :'goodsdesc'},
    {path: '/home/goodscomment/:id', component: goodscomment,name :'goodscomment'}
  ],
  linkActiveClass:'mui-active'
})


export default router
